-
Notifications
You must be signed in to change notification settings - Fork 286
[New Release HERE!!!] Update native sdk version to 6.0.2(Now updated to 6.2.4) & REFECTOR iOS Adapter #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on iOS and works great! Many thanks
Would you fire a new release? |
I don't work for Google, can I do that?
…On Thu, Oct 27, 2022 at 12:29 AM Spermoverflow ***@***.***> wrote:
Tested on iOS and works great! Many thanks
Would you fire a new release?
—
Reply to this email directly, view it on GitHub
<#205 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALIT6YXYJDKFRSKV6DKDP3WFIVMPANCNFSM5KFHXUMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Roger Miller | Collective Mass | 424 603 7827
|
Aha. I mistakenly thought you work for Google~ |
This could help me and my guys but I have a hard time to build this, I am not much in Java anymore since C# exists, can anyone tell me what to do to build this? I tried on Windows WSL 2 and got the below error.
thanks for any help Edit1: After following this guide https://www.javaprogramto.com/2021/11/could-not-determine-java-version.html
gradle version is at 5.4.1 About that sdk issues there is an addon to the readme in this fork https://github.com/wakawa2003/google-signin-unity-fixed |
So sorry for the inconvenience.
If it works, it would be nice to let me know. @karstenkx |
Yes, in the end It worked when I installed that stone old "latest" release and then use the files in your PR , put them into the project overwritting , we both know a proper build and package release would be better |
@karstenkx |
Having the same issue as @MrKhan2022. I'm pretty sure it was working a few days ago. Any help would be appreciated. Edit: If anyone still struggling with this, changing the dependency version from >=6.0.2 to =6.2.4 solved it for me. |
@Crazak Glad to hear that you have work around the issue. Edit: May I have your unity version and xcode version(with macos version)? |
Unity Version: 2021.3.8f1 |
Guys please help me, still getting error like @MrKhan2022 described |
I cant find |
[email protected] |
Hi, I'm trying to build this, but I'm having a similar error to MrKhan, but in my case is another file (GIDSignIn), I've tried creating a new project and importing everything cited on this thread, but it still happens, even switch from 6.0.2 to 6.2.4. |
hi, @matbn |
@CodeMasterYi yes, and I've also tried with a fresh project too, just importing the plugin-1.0.4, your files and the sample scene |
hi @matbn one more thing, it depends this plugin https://github.com/googlesamples/unity-jar-resolver/releases/tag/v1.2.175 |
@CodeMasterYi using only your package with the jar resolver I could build, thank you for the help and for the updates. |
@matbn Glad to hear that. |
@CodeMasterYi Cant seem to figure out the exact issue. I'll keep looking till I figure it out. Also please share the link to the site in the third image. |
Do you mean this? |
@DhawalJhaveri You should ensure that the libarary is included in the package. |
@CodeMasterYi I used the APK analyzer in Android Studio to check if the APK was including the Google Sign-in package but there was nothing related to it. The libs/arm64-v8a is missing the |
@Thaina hi again. Removed GoogleSignIn, EDM. Imported yours with UPM. Resolved and now I cannot build my game. Unity version is 2022.3.44f1. Here is the error:
|
I'm not sure, let's remove |
I deleted Library folder, cleared cache of gradle, reinstalled Unity and project. Still get the same error |
Have you clear resolved library and using gradle system in project? |
I think so. As I said, I deleted googlesignin, edm and reinstalled project at all. Before I had unitypackage signin. Now I used yours UPM packages. I didn't have LauncherManifest, but had LauncherGradleTemplate |
@CodeMasterYi @Thaina Thanks for all your help, I finally solved the issue. All I had to do was keep the older versions of the plugins that i was using and just update the Unity Editor version. I went from using 6000.0.32f1 to 6000.0.58f1. After updating the editor I tried to add the latest versions of the plugins but was faced with the same issue, but after reverting back to the version where my game was properly working I made a build in 6000.0.58f1 and checked it out in APK analyzer first and then on my android device. Those test confirmed that Google Signin is now working for me. |
@BloodIcee Do you explicitly specify JDK version in your build.gradle? How do you build your app? Android Studio or just command line? |
@CodeMasterYi give me some time. I deleted EDM, GoogleSignIn and will reimport UPM again. Let me also add LauncherManifest as Bodrihin said and raise minimum target API to 24 |
It's a common issue with JDK version. |
@CodeMasterYi I use jdk which is installed by Unity. I also installed jdk 17, but it cannot be set in Unity 2022.3 |
@BloodIcee I think you are exporting Android project first? If so: BTW |
@Bodrihin I have try to made a successful build in 2022.3.62f I need to remove all these file in plugins folder, then regenerate it in 2022.3.62f ![]() So, maybe gradle update and credential manager version was the cause? And we might just need newer version of unity to fix it |
@DhawalJhaveri, please tell me, how you made the plugin work! Help please!
@CodeMasterYi, please help! :) I tried to remove the plugin and install it as @Thaina wrote, I simply added the dependency to manifest.json.
But that doesn't work either! :( I just don't get the error right away. When I click the "google login" button, I see the native Android window with a list of my Google accounts. When I choose an account to login, application is crashes with 2 errors:
and then
I rolled back everything and went back to the original plugin... Please help me fix this! P.S. External Dependency Manager ->Android Resolver->Force Resolve from Unity editor menu, works successfully. |
have you try made clean project with only google signin? |
@romas34 All I did was update my Unity Version to 6000.0.58f1 at first then after the new security patch I moved to 6000.0.58f2. Other than that I left all the plugins that I was using as is and it worked fine. |
@romas34 unpack your built package(apk or aab file), find out 'libnative-googlesignin.so' under libs folder. |
no such file! What's funny is, I just built another project of mine, also in Unity 6000.0.59f2, and everything works! But there's no External Dependency Manager (More precisely, it is included via a Package Manager). I looked at the apk of this project and there is a file libnative-googlesignin.so! Why wasn't this file included in this project? |
@romas34 Check the settingsTemplate.gradle file and make sure that the Google Sign-in path looks like this |
Very strange... in the project where everything works, the line is like this:
In the project where it DOESN'T work, the line is:
|
@romas34 Then the problem seem to be about EDM4U and/or it's config |
@DhawalJhaveri, Thank you so much! I corrected the path in the file and everything worked!
but the path to GoogleSignIn did not contain GeneratedLocalRepo... strangely @Thaina , @CodeMasterYi Thank you very much for your help! |
@romas34 Just like its name, |
Maybe I misunderstood something, but I just corrected the path in the settingsTemplate.gradle file. |
@romas34 and others, every time we needed to update something—e.g. most recently it was updating Firebase packages for 16KB Page Size support in Google Play—we would also run into compatibility issues with this package. This time, we tasked GPT-5 in Cursor to look over this plugin, and write a replacement specific to our project. Took a few iterations and builds to get working, but all is working well. Just be sure to specify you want native google sign-in (not web), and ensure it makes changes in the main project's xml dependency files, not in the build folder (for iOS) so that these changes stick between builds. Now in the future we won't have to faff around with the same old compatibility problems that arise from this plug-in. |
@romas34 that issue is most probably related to the force resolve we perform before making a build for Android. We had to go through a lot of trial and errors to get it right. |
Update native sdk version to latest & refactor iOS adapter!
before google's future new release(greater than 1.0.4 released in 2018), you guys can
try import this. [email protected]
It depends on EDM4U(aka. unity-jar-resolver).
https://github.com/CodeMasterYi/google-signin-unity/releases
Update 2025-08-14!!!
= 6.2.4
!GTMSessionFetcher/Core
from<3.0
to '<4.0' CocoaPods/Specs#14617, under~/.cocoapods/repos/cocoapods/Specs/d/4/0/GoogleSignIn/6.2.4/GoogleSignIn.podspec.json